package eu.connect.im;

public class Message
{
	private Object messageEntity;	//encapsulate different kinds of message 
	private String messageType;		//message type: MyOMS or XMPP
	private String source;			//client or server
	private Partner myrole;			//reference to proxy who sends this message
	private Partner yourrole;		//reference to corresponding proxy
	
	public Message(Object messageEntity, String messageType, String role)
	{
		this.messageEntity = messageEntity;
		this.messageType = messageType;
		this.source = role;
	}
	
	public Object getMessageEntity()
	{
		return this.messageEntity;
	}
	
	public String getMessageType()
	{
		return this.messageType;
	}
	
	public String getSource()
	{
		return this.source;
	}
	
	public Partner getMyrole()
	{
		return this.myrole;
	}
	
	public Partner getYourrole()
	{
		return this.yourrole;
	}
	
	public void setMyrole(Partner myrole)
	{
		this.myrole = myrole;
	}
	
	public void setYourrole(Partner yourrole)
	{
		this.yourrole = yourrole;
	}
	
	
}
